package com.example.LinuxSpringBoot.service.imp;

import com.example.LinuxSpringBoot.dao.UserDao;
import com.example.LinuxSpringBoot.domain.User;
import com.example.LinuxSpringBoot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImp implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> getAllUsers() {
        return userDao.getAllUsers();
    }
}
